package com.cet.qz.unit01.chapter1_4;

/**
 * @program: algorithm
 * @description: 给出以下代码段的运行时间的增长数量级
 * @author: 陈恩涛
 * @create: 2021-05-31 21:48
 **/
public class Qz146 {

    public static void main(String[] args) {
        int sum = 0;
        int N = 128;
        for (int n = N; n > 0; n /= 2) {
            for (int i = 0; i < n; i++) {
                sum++;
            }
        }
        System.out.println(sum);
    }
}
